package main

import (
	"sort"
	"fmt"
)

type Interface interface {
	Len() int
	Less(i, j int) bool
	Swap(i, j int)
}

type IntSlice []int
type Float64Slice []float64
type StringSlice []string

func (p IntSlice) Len() int {
	return len(p)
}

func (p IntSlice) Less(i, j int) bool {
	return p[i] < p[j]
}

func (p IntSlice) Swap(i, j int) {
	p[i], p[j] = p[j], p[i]
}

func main() {
	is := IntSlice{8,9,7,10,3}
	sort.Sort(is)
	fmt.Println(is)
}